import common from "../common";
import constants from "../constants";

const sysUserApi = {
    excelExportTemplateName: 'SysUser.xlsx',
    findSysUsers: (data, success, error) => {
        return common.requestData(constants.API_FindSysUsers, data, success, error);
    },
    //查询SysUser及部门、职务、人员特性等
    findSysUserParams: (data, success, error) => {
        return common.requestData(constants.API_FindSysUserParams, data, success, error);
    },
    saveSysUser: (data, success, error) => {
        return common.requestData(constants.API_SaveSysUser, data, success, error);
    },
    getSysUserBySid: (data, success, error) => {
        return common.requestData(constants.API_GetSysUserBySid, data, success, error);
    },
    getSysUserParamsById: (data, success, error) => {
        return common.requestData(constants.API_GetSysUserParamsById, data, success, error);
    },
    batchDelSysUser: (data, success, error) => {
        return common.requestData(constants.API_BatchDelSysUser, data, success, error);
    },
    findRoleListByUser: (data, success, error) => {
        return common.requestData(constants.API_FindRoleListByUser, data, success, error);
    },
    saveRoleList2User: (data, success, error) => {
        return common.requestData(constants.API_SaveRoleList2User, data, success, error);
    },
    resetPwd: (data, success, error) => {
        return common.requestData(constants.API_ResetPwd, data, success, error);
    },
    changePwd: (data, success, error) => {
        return common.requestData(constants.API_ChangePwd, data, success, error);
    },
    logout: (data, success, error) => {
        return common.requestData(constants.API_Logout, data, success, error);
    },
    findUnBindSysUser: (data, success, error) => {
        return common.requestData(constants.API_FindUnBindSysUser, data, success, error);
    },
    getMyUserInfo: (data, success, error) => {
        return common.requestData(constants.API_GetMyUserInfo, data, success, error);
    },
    saveMyUserInfo: (data, success, error) => {
        return common.requestData(constants.API_SaveMyUserInfo, data, success, error);
    },
    wxBind: (data, success, error) => {
        return common.requestData(constants.API_WxBind, data, success, error);
    },
};

export default sysUserApi;
